let lastCall = 0
/**
*节流函数
*/
export function throttle(fn,delay){
    const now = new Date().getTime();
    if(now-lastCall<delay){
        return
    }
    lastCall = now
    fn.apply(this,arguments)
}

/**
* 处理金钱显示
*/
export function handleBalance(money) {
	return money ? money : Number(money).toFixed(2)
}